home *** CD-ROM | disk | FTP | other *** search
- -- card: 5101 from stack: in.1
- -- bmap block id: 13021
- -- flags: 0000
- -- background id: 2632
- -- name:
- ----- HyperTalk script -----
- on openCard
- global DateA, DateB
- hide card field id 1
- hide card field id 2
- show card field id 3
- convert DateA to abbreviated date
- convert DateB to abbreviated date
- if DateA ≠ DateB then
- hide card field id 3
- show card field id 1
- show card field id 2
- else
- hide card field id 1
- hide card field id 2
- show card field id 3
- end if
- end openCard
-
-
- -- part 1 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=17 top=62 right=114 bottom=484
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 2 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=255 top=94 right=112 bottom=479
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 0001
- -- rect: left=9 top=59 right=120 bottom=495
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=252 top=157 right=174 bottom=379
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 5 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=131 top=223 right=241 bottom=160
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 6 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=185 top=223 right=241 bottom=214
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 7 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=236 top=223 right=241 bottom=265
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=209 top=308 right=330 bottom=309
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Continue
- ----- HyperTalk script -----
- on mouseUp
- global timeSeconds,LongA,LongB,longitude, siderealBirth, latitude
- put (card field ID 7) + (60 * card field ID 6) + (3600 * card field ID 5) into noonsidereal
- put noonsidereal - (43200 - timeSeconds) into siderealBirth
- put ((43200 - timeSeconds)/60)/6 into interval
- put siderealBirth - interval into siderealBirth
- put (LongB/15) + (4*LongA) into LongA
- put 60 * LongA into LongA
- if longitude is true then subtract LongA from siderealBirth
- else add LongA to siderealBirth
- if siderealBirth < 0 then add 86400 to siderealBirth
- if siderealBirth >= 86400 then subtract 86400 from siderealBirth
- put trunc(siderealBirth/3600) into card field ID 2 of card ID 6129
- put (the value of siderealBirth) mod 3600 into x
- put trunc(x/60) into card field ID 3 of card ID 6129
- put round((the value of x) mod 60) into card field ID 4 of card ID 6129
- if latitude is true then
- add 43200 to siderealBirth
- if siderealBirth >= 86400 then subtract 86400 from siderealBirth
- put trunc(siderealBirth/3600) into card field ID 10 of card ID 7451
- put (the value of siderealBirth) mod 3600 into x
- put trunc(x/60) into card field ID 11 of card ID 7451
- put round((the value of x) mod 60) into card field ID 12 of card ID 7451
- go to card id 7451
- else go to card id 6129
- end mouseUp
-
-
- -- part contents for card part 1
- ----- text -----
- IMPORTANT!!! Because of the difference between Greenwich Mean
- Time and the time at the birthplace, you will be using
- a revised birthdate:
-
- -- part contents for card part 2
- ----- text -----
- .
-
- -- part contents for card part 4
- ----- text -----
- :